package com.bestcem.xm.ticket.service.dto.user;

import lombok.*;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author gy.liu
 * @version 1.0
 * @date 2021/8/24 11:16
 **/
@ToString
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class MailDTO {

    /**
     * subject
     */
    private String subject;

    /**
     * mailFrom
     */
    private String mailFrom;

    /**
     * mailTo
     */
    private List<String> mailTo;

    /**
     * content
     */
    private String content;

    /**
     * ccTo
     */
    private List<String> ccTo;

    /**
     * contentImages
     */
    private Map<String, String> contentImages;

    /**
     * mailServer
     */
    private MailServer mailServer;

    /**
     * attachments
     */
    private List<String> attachments;

    /**
     * smtpId
     */
    private String smtpId;

    /**
     * msgId
     */
    private String msgId;


    /**
     * 邮件服务器
     *
     * @author gy.liu
     * @version 1.0
     * @date 2021/8/24 11:16
     **/
    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class MailServer implements Serializable {
        private static final long serialVersionUID = 2808716620840986656L;

        private String host;

        private String userName;

        private String passWord;

        private String mailFrom;

        private String port;
    }

}
